package com.bluemoon.bmwalk.common.jacoco.dto;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;
/**
 * 报告
 * @author: liaozhioyng
 * @create: 2024-01-03
 *
 */
@Data
public class Report {

    private String name;

    private final List<Package> packages = new ArrayList<>();

    private final List<Counter> reportCounters = new ArrayList<>();

    private Coverage reportCoverage;


    public void addPackage(Package pkg) {
        packages.add(pkg);
    }

    public void addCounter(Counter counter) {
        reportCounters.add(counter);
    }

}